import EventRoute from '../EventRoute'
const routers: EventRoute[] = []

// 最大化
routers.push(
  new EventRoute('max-user-management-view', async (api) => {
    if (api.userManagementWindow.isMaximized()) {
      api.userManagementWindow.restore()
    } else {
      api.userManagementWindow.maximize()
    }
  })
)

// 最小化
routers.push(
  new EventRoute('min-user-management-view', async (api) => {
    api.userManagementWindow.minimize()
  })
)

export default routers
